package comparable.demo;

import java.util.Comparator;

public class AgeComparator implements Comparator<Stuedent> {
    @Override
    public int compare(Stuedent o1, Stuedent o2) {
        return o1.age - o2.age;
    }
}
